<?php
ini_set( 'display_errors', 1 );
error_reporting(E_ALL);

require_once("sv/db/store/store.php");
require_once("sv/db/item/item.php");

$id='000001';
$s=new store();
$s->con();
$res=$s->sel_param($s->tbl,$s->cols,array($s->cols[0]=>$id));
$s->cls();
$row=mysql_fetch_assoc($res);
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
	<title>fashion site/store</title>
	<base href="http://localhost:8888/fashion/" /> 
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
	<link type="text/css" rel="stylesheet" href="css/c.css"/>
	<link type="text/css" rel="stylesheet" href="css/store/idx.css"/>
	<script type="text/javascript" src="js/jquery-1.6.1.js"></script>
	<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=true"></script>
	<script type="text/javascript" src="js/c.js"></script>
	<script type="text/javascript" src="js/store/idx.js"></script>
</head>
<body onselectstart="return false;">
<input type="hidden" id="stid" name="stid" value="<?php echo$row['id'];?>" />
<!-- All -->
<div id="bg">
	<!-- Base -->
	<div id="base">
		<div id="dropitem">
			<form id="dropform" name="dropform" action="sv/store/uf.php" target="dropframe" enctype="multipart/form-data" method="POST">
				<input type="file" id="dropfitem" name="dropfitem" />
			</form>
			<iframe id="dropframe" style="display:none;"></iframe>
		</div>
		<!-- Head -->
		<div id="head">
			<!-- Color bar -->
			<div class="fcolor"> </div>
			<div class="titlefont">Fashion / Store / <?php echo$row['name'];?></div>
			<div id="myitems"></div>
			<!--<input id="disp_myitem_switch" type="button" value="" />-->
			<div class="fclr"></div>
			
			<!-- Search -->
			<div id="search_section">
				<input id="search_btn" type="button" value="search" />
				<input id="search_bar" type="text" />
			</div>
			
			<!-- Tab -->
			<div id="tab_section">
				<ul id="tablist">
					<li tar="all" id="tabdefault">All</li>
					<li tar="sinfo">StoreInfo</li>
					<li tar="contents">Items</li>
				</ul>
				<div class="fclr"></div>
			</div>
		</div>
		<!-- Main -->
		<div id="main">
			<!--
				<div class="maintitle">store information</div>
			-->
			<div id="sinfo">
				<div class="section" id="myname_section">
					<div id="myname" class="editor_div"><?php echo$row['name'];?></div>
				</div>
				<div class="section" id="mybanner_section">
					<div id="mybanner" class="editor_div"><?php echo$row['bannerpath'];?></div>
				</div>
				<div class="section" id="myurl_section">
					<div id="myurl" class="editor_div"><?php echo$row['url'];?></div>
				</div>
				<div class="section" id="mymap_section">
					<div class="mainsubtitle">Address</div>
					<ul>
						<li>
							<div id="mymapgeo" class="editor_div"><?php echo$row['address'];?></div>
						</li>
						<li>
							<input type="button" id="mymap_search" name="mymap_search" value="Search Map" />
						</li>
					</ul>
					<div class="fclr"></div>
					<div id="mymap"></div>
					<input type="hidden" id="mymap_x" name="mymap_x" value="<?php echo$row['g_x'];?>" />
					<input type="hidden" id="mymap_y" name="mymap_y" value="<?php echo$row['g_y'];?>" />
				</div>
			</div>
			<!-- Contents -->
			<!--
				<div class="maintitle">fashion items</div>
			-->
			<div id="contents"></div>
			<div class="fclr"></div>
			<!-- Foot -->
			<div id="foot">
				<div style="margin-left:10px;">
					foot
				</div>
			</div>
		</div>
	</div>
</div>
</body>
</html>